package edu.ustb.mapper.orders;

import edu.ustb.domain.orders.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrdersDao {
    int deleteByPrimaryKey(String orderId);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(String orderId);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> findByPhone(String userPhone);

    List<Orders> findBySta(@Param("userPhone") String userPhone, @Param("orderStatus") int orderStatus);
}